banner

SNAP - 01

OPENING QUESTIONS: Please take a few moments to go to our classroom Slide Deck and tell me a bit about yourself (Pick a slide and edit out my info and put your own in there instead!)

OBJECTIVE:   I will be able to write a basic SNAP program after today's class.

WORD FOR TODAY:

  • Block
  • Stage
  • Pallet
  • Sprite 

WORK O' THE DAY

Practice logging onto SNAP -- Please use your school ID Only.

Make sure you are logged on. SNAP will work just fine without you being actually logged on to the system, the bad news is that you can't save your work.

Idetify each of our words o' the day:

═══════════════════

Consider the following basic 'sprite' commands:

  • "Pen Down" a line begins at the current position of the sprit
  • "Move 10 Steps" moves the sprite 10 steps in whatever direction the sprite is currently pointing.
    • Notice the numeric value is editable.
    • Any white oval like that on a block indicates that is a VARIABLE that you can edit.
  • "Turn 15 degrees" orients the sprite at a position 15 degrees from it's current position

Notice again that in SNAP the shape of the blocks, the color of the blocks and whether there is a jigsaw-puzzle-like notch in the block are ALL important indicators of the functionality of that block.

For your first forray into sprite, take a few moments to draw a box -- any ol' box, any size, any color but please make sure you draw a SQUARE box.

═══════════════════

Doesyour code look something like this?:

Notice that each block SNAPs into place with the blocks above and below.

What do you do if the block doesn't SNAP into place?

(Notice that the last command is a bit extraneous... I added that in there to sort of kick the sprite up and out of the way so that I can see the entire box)

Notice the orientation of your sprite. The point of the arrow will always show the current direction the sprite is pointing.

Now see if you can create a hexagon!

(Hint: An important skill is to use the duplicate action... move your cursor over the section you want to duplicate, hit the right mouse key and select "duplicate")

══════════════════════════

If time permits, let's take another look at the STAGE:

Grab a piece of graph paper and use a ruler to plot an x and y axis as you see above.

Then carefully DRAW a shape of your choice (some suggestions are below) very precisely using a ruler and work dilligently to make sure your lines are straight and angles are accurate.

Then work to measure your shape and re-create it using SNAP!